package com.chenyue.cm.common.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @author Administrator
 * @Title: Constants
 * @ProjectName lc_master
 * @Description: TODO
 * @date 2018/11/1610:48
 */
public class Constants {

    /**
     * 小程序相关信息
     */
    public static final String WX_APPID= "wxd7873fa19f12c25d";   //小程序appId
    public static final String WX_APPSECRET= "154730f5a00f38bc2cc00428fdc2d1b6";   //小程序密钥appSecret
    /**
     * 小程序相关信息
     */
    public static final String PC_APPID= "wxb2e21d6a472ec166";   //小程序appId
    public static final String PC_APPSECRET= "74784ecd70b2ef9f88e7cd165cbb6246";   //小程序密钥appSecret

    /** 调用微信接口返回错误码 */
    public static final String ERROR_CODE1 = "-1";
    public static final String ERROR_CODE2 = "4029";
    public static final String ERROR_CODE3 = "45011";
    /**
     * 图片上传地址
     */
    public static final String PIC_URL = "GAYL/UPLOAD/";

    /**
     * sys_users 常量 state 0 启动 1 停用
     **/
    public static final Integer STATE_0 = 0;
    public static final Integer STATE_1 = 1;

    public static final String DEFAULT_PWD = "education";
    public static final String BASE_IMG_URL = "/upload/2020-11-30/2020-11-305818.jpg";

    /**
     * int 类型公共常量
     */
    public static final int COMMON_STATE_0 = 0;
    public static final int COMMON_STATE_1 = 1;
    /**
     * String 类型公共常量
     */
    public static final String COMMON_STATUS_0 = "0";
    public static final String COMMON_STATUS_1 = "1";

    /**
     * token 前缀
     */
    public static final String TOKEN = "guanai_token_";

    /**
     * 商品承诺
     */

    public final static List<String> GOODPROMISELIST = Arrays.asList("正品保障", "优质售后", "质量保证", "24小时发货");


    /**
     * 订单状态(0：未付款 1：待发货 2：待签收 3：已签收 4：申请退款 5：退货中 6：已退货 7：取消交易 8 确认收货 9 待评价 10 已完成 11已关闭 12已删除）
     */
    public static final int ORDER_STATUS_0 = 0;
    public static final int ORDER_STATUS_1 = 1;
    public static final int ORDER_STATUS_2 = 2;
    public static final int ORDER_STATUS_3 = 3;
    public static final int ORDER_STATUS_4 = 4;
    public static final int ORDER_STATUS_5 = 5;
    public static final int ORDER_STATUS_6 = 6;
    public static final int ORDER_STATUS_7 = 7;
    public static final int ORDER_STATUS_8 = 8;
    public static final int ORDER_STATUS_9 = 9;
    public static final int ORDER_STATUS_10 = 10;
    public static final int ORDER_STATUS_11 = 11;
    public static final int ORDER_STATUS_12 = 12;


    /**
     * 订单日志类型( 1新增  2取消支付 3取消订单 4退款 5删除 )
     */
    public static final int ORDER_LOG_TYPE_1 = 1;
    public static final int ORDER_LOG_TYPE_2 = 2;
    public static final int ORDER_LOG_TYPE_3 = 3;
    public static final int ORDER_LOG_TYPE_4 = 4;
    public static final int ORDER_LOG_TYPE_5 = 5;



    /**
     * 手机登录失效时间
     */
    public static final long PHOME_EXIPER_TIME = 60 * 60 * 24 * 30;

    /**
     * 商品库存类型( 新增 修改 0：出库 1：入库  2：售卖:3：退货 4:取消订单)
     */
    public static final int STOCK_LOG_TYPE_0 = 0;
    public static final int STOCK_LOG_TYPE_1 = 1;
    public static final int STOCK_LOG_TYPE_2 = 2;
    public static final int STOCK_LOG_TYPE_3 = 3;
    public static final int STOCK_LOG_TYPE_4 = 4;


    /**
     * 是否首页推荐(0-否，1-是)
     */
    public static final String HOT_FLAG_0="0";
    public static final String HOT_FLAG_1="1";

    /**
     * 收藏类型(0-商品 1-学术交流)
     */
    public static final String COLLECT_TYPE_0 = "0";
    public static final String COLLECT_TYPE_1 = "1";

    /**
     * 是否领取（0-未领取，1已领取）
     */
    public static final String COUPONS_STATUS_0 = "0";
    public static final String COUPONS_STATUS_1 = "1";

    /**
     * 优惠券种类(0-立减 1-满减 2-折扣)
     */
    public static final String COUPONS_TYPE_0 = "0";
    public static final String COUPONS_TYPE_1 = "1";
    public static final String COUPONS_TYPE_2 = "2";
    /**
     * 用户优惠券使用状态(0-未使用 1-已使用 2-已失效)
     */
    public static final String MEMBER_COUPONS_STATUS_0 = "0";
    public static final String MEMBER_COUPONS_STATUS_1 = "1";
    public static final String MEMBER_COUPONS_STATUS_2 = "2";

    /**
     * 是否展示 （0不展示  1展示）
     */
    public static final String IS_SHOW_0 = "0";
    public static final String IS_SHOW_1 = "1";

    /**
     * 运费方式(0-固定运费   1-运费模版)
     */
    public static final String FEE_TYPE_0 = "0";
    public static final String FEE_TYPE_1 = "1";


    /**
     * 是否推荐 0否1是
     */
    public static final String RECOMMEND_0 = "0";
    public static final String RECOMMEND_1 = "1";


    public static String FLAG_1 = "1";
    public static String FLAG_2 = "2";

    /**
     * 学术交流评论状态
     */
    public static String STATUS_0 = "0";
    public static String STATUS_1 = "1";
    public static String STATUS_2 = "2";
}

